/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hydms.illegalregistration.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

/**
 * 违规登记Entity
 * @author 刘健
 * @version 2017-04-05
 */
public class DmsIllegalRegistration extends DataEntity<DmsIllegalRegistration> {
	
	private static final long serialVersionUID = 1L;
	private Date illegalDate;		// illegal_date
	private String illegalPersonName;		// 违规人员姓名
	private String studentNumber;		// 学号
	private String dormitoryNumber;		// 宿舍号
	private String illegalReason;		// 违规原因
	private String fine;		// 惩罚金额
	
	public DmsIllegalRegistration() {
		super();
	}

	public DmsIllegalRegistration(String id){
		super(id);
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="违规日期",type=0, align=2, sort=10)
	public Date getIllegalDate() {
		return illegalDate;
	}

	public void setIllegalDate(Date illegalDate) {
		this.illegalDate = illegalDate;
	}
	
	@Length(min=0, max=50, message="违规人员姓名长度必须介于 0 和 50 之间")
	@ExcelField(title="违规人员姓名",type=0, align=2, sort=20)
	public String getIllegalPersonName() {
		return illegalPersonName;
	}

	public void setIllegalPersonName(String illegalPersonName) {
		this.illegalPersonName = illegalPersonName;
	}
	
	@Length(min=0, max=20, message="学号长度必须介于 0 和 20 之间")
	@ExcelField(title="学号",type=0, align=2, sort=30)
	public String getStudentNumber() {
		return studentNumber;
	}

	public void setStudentNumber(String studentNumber) {
		this.studentNumber = studentNumber;
	}
	
	@Length(min=0, max=20, message="宿舍号长度必须介于 0 和 20 之间")
	@ExcelField(title="宿舍号",type=0, align=2, sort=40)
	public String getDormitoryNumber() {
		return dormitoryNumber;
	}

	public void setDormitoryNumber(String dormitoryNumber) {
		this.dormitoryNumber = dormitoryNumber;
	}
	
	@Length(min=0, max=255, message="违规原因长度必须介于 0 和 255 之间")
	@ExcelField(title="违规原因",type=0, align=2, sort=50)
	public String getIllegalReason() {
		return illegalReason;
	}

	public void setIllegalReason(String illegalReason) {
		this.illegalReason = illegalReason;
	}
	
	@Length(min=0, max=20, message="惩罚金额长度必须介于 0 和 20 之间")
	@ExcelField(title="惩罚金额",type=0, align=2, sort=60)
	public String getFine() {
		return fine;
	}

	public void setFine(String fine) {
		this.fine = fine;
	}
	
}